﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HardMobCommons;
using System.Data.Entity.ModelConfiguration;
using HardMobCommons.Entidades;

namespace HardMobInfra.Mapeamentos
{
	public class RegistroMensagensConfiguration : EntityTypeConfiguration<RegistroMensagens>
	{
		public RegistroMensagensConfiguration()
		{
			ToTable("Mensagens");

			HasKey(r => r.ID);

			HasRequired(r => r.Usuario)
				.WithMany(t => t.Mensagens)
				.WillCascadeOnDelete(true);

		}
	}
}
